<html xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<link rel="stylesheet" href="js/analiz.css" />
</h:head>

<h:body>
	<f:view>
	
	<p:layout fullPage="true">
		<p:layoutUnit position="top" height="120" id="topLogin" >
		<center>
		<table>
		<tr>
			<td>
				<h:graphicImage url="img/bannerAnaliz.png" height="100"></h:graphicImage>
			</td>
				<td>
				<table id="login" align="center">
					<tr>
						<td><h:outputText value="User" ></h:outputText></td>
						<td><h:outputText value="Password"></h:outputText></td>
						<td></td>
					</tr>
					<tr>
						<h:form prependId="false">
							<td><p:inputText value="#{userBean.user.user}" id="usuario"/></td>
							<td><p:password feedback="false" value="#{userBean.user.senha}" id="senha"/></td>
							<td rowspan="1"><p:commandButton value="Login" action="#{userBean.logar}"  update="lg" />
							</td>
						</h:form>
					</tr>
					<tr > <td colspan="3"><p:messages id="lg" showDetail="true"/></td></tr>
				</table>
				</td>
		</tr>
			
		</table>
		</center>
		</p:layoutUnit>
	
	<p:layoutUnit position="center" >
	<center>
	<h:form>  
    <p:dataTable var="user" value="#{usuarioBean.usuarios}">  
        <p:column>  
            <f:facet name="header">  
                    ID  
            </f:facet>  
            <h:outputText value="#{user.id}" />  
        </p:column>  
  
        <p:column>  
            <f:facet name="header">  
                    NOME  
            </f:facet>  
            <h:outputText value="#{user.usuario}" />  
        </p:column>  
  
        <p:column>  
            <f:facet name="header">  
                    SENHA  
            </f:facet>  
            <h:outputText value="#{user.senha}" />  
        </p:column>  
  
    </p:dataTable>  
</h:form>  
	</center>
	</p:layoutUnit>
	
	<p:layoutUnit position="bottom" height="20">
	Analiz 2011
	</p:layoutUnit>
	
	</p:layout>
	
	</f:view>
</h:body>
</html>